import request from '@/utils/request'

//获取请款列表
export function getPaymentList(data) {
    return request({
        url: `/project/payment/list`,
        method: 'get',
        params: data
    })
}
//根据id查询请款
export function getPaymenById(id) {
    return request({
        url: `/project/payment/${id}`,
        method: 'get',
    })
}
// 新增/修改请款
export function updatePayment(data) {
    return request({
        url: `/project/payment/update`,
        method: 'post',
        data: data
    })
}
// 删除请款
export function deletePayment(data) {
    return request({
        url: `/project/payment/delete`,
        method: 'post',
        params: data
    })
}